package fons.navigator.ui.export.decorators;

import javax.swing.JList;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import fons.navigator.ui.export.ExporterWindowDecorator;
import fons.navigator.ui.export.IExporterWindow;


public class RendererChooserDecorator extends ExporterWindowDecorator implements ListSelectionListener {

	final JList optionList;
	
	public RendererChooserDecorator(IExporterWindow parent) {
		super(parent);
		
		String options[] = { "PDF" };
		
		optionList = new JList(options);
		optionList.addListSelectionListener(this);
		optionList.setSelectedIndex(0);
		getExportOptionsGrid().row().right().add(optionList);
		pack();
	}

	@Override
	public void valueChanged(ListSelectionEvent e) {
		if ("PDF".equals(optionList.getSelectedValue())) {
//			setRenderer(new PDFRenderer());
		}
	}

}
